--- /dev/null
+[org.gnome.mutter:GNOME]
+attach-modal-dialogs=true
+edge-tiling=true
+dynamic-workspaces=true
+workspaces-only-on-primary=true
+focus-change-on-pointer-rest=true
configuration: schemaconf,
install_dir: schemadir
)
+install_data('00_org.gnome.shell.gschema.override', install_dir: schemadir)
if have_systemd
unitconf = configuration_data()
</key>
</schema>
+ <!-- unused, change 00_org.gnome.shell.gschema.override instead --!>
<schema id="org.gnome.shell.overrides" path="/org/gnome/shell/overrides/"
gettext-domain="@GETTEXT_PACKAGE@">
<key name="attach-modal-dialogs" type="b">
global.display.connect('restacked',
this._windowsRestacked.bind(this));
- this._workspaceSettings = this._getWorkspaceSettings();
+ this._workspaceSettings = new Gio.Settings({ schema_id: 'org.gnome.mutter' });
this._workspaceSettings.connect('changed::dynamic-workspaces', this._queueCheckWorkspaces.bind(this));
this._nWorkspacesChanged();
},
- _getWorkspaceSettings() {
- let settings = global.get_overrides_settings();
- if (settings &&
- settings.settings_schema.list_keys().indexOf('dynamic-workspaces') > -1)
- return settings;
- return new Gio.Settings({ schema_id: 'org.gnome.mutter' });
- },
-
blockUpdates() {
this._pauseWorkspaceCheck = true;
},
#define SHELL_DBUS_SERVICE "org.gnome.Shell"
#define MAGNIFIER_DBUS_SERVICE "org.gnome.Magnifier"
-#define OVERRIDES_SCHEMA "org.gnome.shell.overrides"
-
#define WM_NAME "GNOME Shell"
#define GNOME_WM_KEYBINDINGS "Mutter,GNOME Shell"
g_object_unref (session);
}
-static void
-shell_prefs_init (void)
-{
- ShellGlobal *global = shell_global_get ();
- GSettings *settings = shell_global_get_overrides_settings (global);
- GSettingsSchema *schema;
- char **keys, **k;
-
- if (!settings)
- return;
-
- g_object_get (G_OBJECT (settings), "settings-schema", &schema, NULL);
-
- for (keys = k = g_settings_schema_list_keys (schema); *k; k++)
- meta_prefs_override_preference_schema (*k, g_settings_schema_get_id (schema));
-
- g_strfreev (keys);
- g_settings_schema_unref (schema);
-}
-
static void
shell_introspection_init (void)
{
_shell_global_init ("session-mode", session_mode, NULL);
- shell_prefs_init ();
-
dump_gjs_stack_on_signal (SIGABRT);
dump_gjs_stack_on_signal (SIGFPE);
dump_gjs_stack_on_signal (SIGIOT);
return global->settings;
}
-/**
- * shell_global_get_overrides_settings:
- * @global: A #ShellGlobal
- *
- * Get the session overrides GSettings instance.
- *
- * Return value: (transfer none): The GSettings object
- */
-GSettings *
-shell_global_get_overrides_settings (ShellGlobal *global)
-{
- static GSettings *settings = NULL;
- const char *schema;
-
- g_return_val_if_fail (SHELL_IS_GLOBAL (global), NULL);
-
- if (!settings)
- {
- if (strcmp (global->session_mode, "classic") == 0)
- schema = "org.gnome.shell.extensions.classic-overrides";
- else if (strcmp (global->session_mode, "user") == 0)
- schema = "org.gnome.shell.overrides";
- else
- return NULL;
-
- settings = g_settings_new (schema);
- }
-
- return settings;
-}
-
/**
* shell_global_get_current_time:
* @global: A #ShellGlobal
MetaDisplay *shell_global_get_display (ShellGlobal *global);
GList *shell_global_get_window_actors (ShellGlobal *global);
GSettings *shell_global_get_settings (ShellGlobal *global);
-GSettings *shell_global_get_overrides_settings (ShellGlobal *global);
guint32 shell_global_get_current_time (ShellGlobal *global);